package itdfq.ydd.Creational_Pattern.yuanxingmoshi;

/**
 * @Author GocChin
 * @Date 2021/3/28 10:50
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args)  {
        World world,copyworld = null;
        world  = new World();
        try {
            copyworld = (World) world.deepClone();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("18031210136  杨丹丹");
        System.out.println("world==copyworld?");
        System.out.println(world==copyworld);
        System.out.println("world.getAnnex()==copyworld.getAnnex()?");
        System.out.println(world.getAnnex()==copyworld.getAnnex());

    }
}
